package cn.hanyx.coder.design.pattern.behavioral.visitor.demo05.visitor;

import cn.hanyx.coder.design.pattern.behavioral.visitor.demo05.file.PPTFile;
import cn.hanyx.coder.design.pattern.behavioral.visitor.demo05.file.PdfFile;
import cn.hanyx.coder.design.pattern.behavioral.visitor.demo05.file.WordFile;

/**
 * Extractor
 *
 * @author hanyx
 * @date 2020/07/29
 */
public class Extractor implements Visitor {

    @Override
    public void visit(PPTFile pptFile) {
        System.out.println("Extract PPT.");
    }

    @Override
    public void visit(PdfFile pdfFile) {
        System.out.println("Extract PDF.");
    }

    @Override
    public void visit(WordFile wordFile) {
        System.out.println("Extract world.");
    }

}
